package com.atguigu.sso.client.Controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpSession;

@Controller
public class TestSession {




   @RequestMapping("/testSession")
   @ResponseBody
   public String testSeeion(HttpSession session){
       session.setAttribute("testSession","hello");
       return (String)session.getAttribute("testSession");
   }





}
